﻿using AutoMapper;
using Esosi.Register.Base.Dtos;
using Esosi.Register.Hospital.Models;
using Esosi.Repository.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace Esosi.Register.Hospital.Profiles
{
   public  class RegisterBalanceProfile : Profile
    {
        public RegisterBalanceProfile()
        {
            CreateMap<RegisterCalcTpoDto, RegisterBalanceModel>()
                .ForMember(dest => dest.gmPrices, opt => opt.MapFrom(src => src.gmPrices))
                .ForMember(dest => dest.BalanceCalcMessageShow, opt => opt.MapFrom(src => src.BalanceCalcMessageShow))
                .ForMember(dest => dest.PatientInfo, opt => opt.MapFrom(src => src.PatientInfo))
                .ForMember(dest => dest.TotalFees, opt => opt.MapFrom(src => src.TotalFees))
                .ForMember(dest => dest.TpoId, opt => opt.MapFrom(src => src.TpoId))
                .ForMember(dest => dest.MustPay, opt => opt.MapFrom(src => src.MustPay))
                .ReverseMap();
        }
    }
}
